package com.qcby.model.dto;

import com.qcby.query.MovieQuery;
import com.qcby.util.StringUtils;

import lombok.*;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class MovieQueryDto {

    private MovieQuery movieQuery;

    private String condition;

    public Boolean isValid() {
        System.out.println(this);
        return this.movieQuery == null || StringUtils.isEmpty(this.condition);
    }
}
